$manager = \TestingAccessWrapper::newFromObject( $this->getManager() );
$manager->setLogger( new \Psr\Log\NullLogger() );
- $mock = $this->getMock( 'stdClass', [ 'save' ] );
- $mock->expects( $this->once() )->method( 'save' );
+ $mock = $this->getMock( 'stdClass', [ 'shutdown' ] );
+ $mock->expects( $this->once() )->method( 'shutdown' );
$manager->allSessionBackends = [ $mock ];
$manager->shutdown();